# -*- coding:utf-8 -*-
from fastapi import Request, HTTPException
from sqlalchemy.exc import OperationalError
from sqlalchemy import update, delete, select, func, text
from app.entity.system import SysUser
from core.curd import CRUDBase


class SysAuthDao:
    """
    测试模块服务层
    """

    def __init__(self, req: Request):
        self.db_session = req.app.state.db_async_session

    @classmethod
    async def instance(cls, req: Request):
        return cls(req)